/*
 * All rights Reserved, Designed By DataDriver
 * Copyright:    DataDriver.Inc
 * Company:      Zhuo Wo Infomation Technology (ShangHai) CO.LTD
 */
package com.sun;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;

@SpringBootApplication
@EnableConfigServer //开启配置中心
public class Config5001Application {

    /**
     * todo: 访问规则：
     * /{application}/{profile}[/{label}]
     * http://localhost:8888/application/dev/master
     *
     * /{application}-{profile}.properties
     * http://localhost:8888/application-dev.properties
     *
     * /{label}/{application}-{profile}.properties
     * http://localhost:8888/master/application-dev.properties
     *
     * /{application}-{profile}.yml
     * http://localhost:8888/application-dev.yml
     *
     *
     * /{label}/{application}-{profile}.yml
     * http://localhost:8888/master/application-dev.yml
     * @param args
     *
     *访问地址:
     * http://localhost:5001/application/dev/master
     */
    public static void main(String[] args) {
        SpringApplication.run(Config5001Application.class, args);
    }
}
